Skip to content

Drop the N1x rescue boot entry - #18913

Merged
dhh merged 3 commits into
quattrofrom
drop-n1x-fallback
Nov 15, 2026
Merged

dhh merged 3 commits into
quattrofrom
drop-n1x-fallback

Conversation

@dhh

@dhh dhh commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Merge after omacom/omarchy-iso#440, which drops the ISO's check that every N1x install has a linux-omarchy-fallback rescue entry. Merged before it, every N1x install from the ISO would fail boot validation. Draft until then.

What changes

N1x laptops got a text-console rescue entry right below the normal one: a fallback UKI built with every module (no autodetect), NVIDIA blacklisted, nomodeset, booting to multi-user.target. It dates from N1x bring-up, when pre-release firmware couldn't boot the GPU. Release firmware boots it, and Btrfs snapshots cover recovery, so it's no longer needed.

It was expensive: building that fallback image takes about 53s on an N1x (142 MB), against 19s for the normal one, and it ran on every install and every kernel update. On this machine's install log, "Finalizing boot and user" took 37s of a 57s install, most of it these two builds.

  • install/hardware/n1x.sh no longer writes zz-omarchy-n1x-boot-order.conf (MKINITCPIO_FALLBACK, the rescue cmdline, its BOOT_ORDER and snapshot exclusion). The default BOOT_ORDER from omarchy-defaults.conf applies.
  • Migration 1794673542 removes that drop-in on existing N1x machines and runs limine-mkinitcpio, which deletes the fallback UKI and its menu entry when no fallback is configured (limine-mkinitcpio-install, remove_uki_if_present).

Verification

  • hardware-quirks-test.sh, hw-n1x-test.sh, image-target-platform-test.sh and ./test/cli pass.
  • Timed mkinitcpio on an N1x (Dell): 19.0s default, 53.1s with -S autodetect.
  • Not yet run: the migration on a real N1x, and a fresh N1x install with this change.

Screenshots

No visible change on the desktop: the boot menu loses the N1x "linux-omarchy-fallback" entry.

🤖 Generated with Claude Code

The fallback UKI behind it is built with every module and took about a
minute on every install and kernel update. Release firmware boots the GPU,
and snapshots cover recovery. Existing N1x machines lose the drop-in and
rebuild, which removes the fallback UKI and its menu entry.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@greptile-apps

greptile-apps Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 4/5

[Medium impact] The boot-menu change is limited to N1x machines.

The migration should confirm that the rebuild finished before this PR merges.

Findings

  1. P1 Interrupted removal never finishes ▶

Summary

Removes the N1x rescue boot entry and its extra image build.

  • N1x boot menus no longer include a dedicated rescue entry.

Reviews (2) · Last reviewed commit: "Merge branch 'quattro' into drop-n1x-fal..." · Reviewed by Greptile

Comment thread migrations/1794673542.sh Outdated
Comment on lines +9 to +12
[[ -f $conf ]] || exit 0

sudo rm -f "$conf"
sudo limine-mkinitcpio

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Interrupted removal never finishes

If the migration stops after deleting $conf but before the rebuild finishes, the next run exits successfully because $conf is gone. omarchy-migrate then marks it complete without retrying the rebuild, so the rescue image and menu entry can remain. This violates the migration requirement that unfinished work must remain pending. Keep a durable pending marker before deleting the config, and clear it only after confirming the rebuild finished.

File Used: agents/skills/migrations.md (source)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in dd4e3df: the migration writes a pending marker before deleting the drop-in and removes it only after limine-mkinitcpio succeeds, so an interrupted rebuild exits non-zero and the next run finishes it. Dry-run with the rebuild stubbed to fail, then succeed, then run again: pending, done, no-op.

@dhh
dhh marked this pull request as ready for review November 15, 2026 10:06
dhh added a commit to omacom/omarchy-iso that referenced this pull request Nov 15, 2026
Omarchy drops the N1x fallback UKI that served as the rescue entry
(omacom/omarchy#18913): its every-module initramfs took about a minute on
every install and kernel update, and release firmware boots the GPU. Boot
validation still checks every N1x kernel entry for console=tty0 and
acpi=nospcr, but no longer fails an install without the rescue entry.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@dhh
dhh merged commit b80cf8e into quattro Nov 15, 2026
3 of 4 checks passed
@dhh
dhh deleted the drop-n1x-fallback branch November 15, 2026 11:22
dhh added a commit to omacom/omarchy-iso that referenced this pull request Nov 15, 2026
* Stop requiring the N1x rescue entry

Omarchy drops the N1x fallback UKI that served as the rescue entry
(omacom/omarchy#18913): its every-module initramfs took about a minute on
every install and kernel update, and release firmware boots the GPU. Boot
validation still checks every N1x kernel entry for console=tty0 and
acpi=nospcr, but no longer fails an install without the rescue entry.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Pre-build an N1x UKI in the aarch64 image

Every N1x built its UKI at install, about 20s: its hardware setup adds the
NVIDIA stack and the I2C keyboard to the initramfs, so the generic pre-built
UKI never fit. The aarch64 image now carries a second one built with those
modules, read from the image's own n1x.sh, and the installer copies it on an
N1x whose module lines match exactly. The NVIDIA packages go into a
throwaway overlay at build time, never into the image.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
dhh added a commit to omacom/omarchy-iso that referenced this pull request Nov 15, 2026
* Stop requiring the N1x rescue entry

Omarchy drops the N1x fallback UKI that served as the rescue entry
(omacom/omarchy#18913): its every-module initramfs took about a minute on
every install and kernel update, and release firmware boots the GPU. Boot
validation still checks every N1x kernel entry for console=tty0 and
acpi=nospcr, but no longer fails an install without the rescue entry.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Pre-build an N1x UKI in the aarch64 image

Every N1x built its UKI at install, about 20s: its hardware setup adds the
NVIDIA stack and the I2C keyboard to the initramfs, so the generic pre-built
UKI never fit. The aarch64 image now carries a second one built with those
modules, read from the image's own n1x.sh, and the installer copies it on an
N1x whose module lines match exactly. The NVIDIA packages go into a
throwaway overlay at build time, never into the image.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Install the N1x's NVIDIA stack from a layer packed at build time

An N1x pacstrapped linux-omarchy-nvidia-open, nvidia-utils and the rest of
its package list at install: 22.6s, about 16s of it depmod and ldconfig
reading the freshly written disk cold. The overlay that pre-builds the N1x
UKI now installs that whole list, runs depmod, ldconfig and sysusers, and
packs what it added as omarchy-layer.aarch64-n1x.tar.zst next to the root
image, listed in the image's sha256 file so the boot-time verify covers it.
The installer extracts it right after the image write; the platform delta
then finds nothing missing. The image itself stays generic, and an ISO
without the layer installs as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Name the platform's package set in the log when the layer installed it all

The N1x install test checks the log for the set the installer took;
with the layer, no STEP.platform_packages line names it any more.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit bbd6ac20832e3248ecf51de0d827915830f2cc56)

* Watch the platform layer's read like the image's

The image's sums file lists the N1x layer too, but the wait only knew the
image and the mirror: a stick hanging mid-layer sat out the size-based
timeout, which did not count the layer either. Track the layer's offset
for the stall check, count its bytes in the progress, and size the
timeout over the image and its layers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant